package ysq.xyg.recovery.service;

import ysq.xyg.base.model.dto.ReturnEntity;
import ysq.xyg.base.service.BaseService;
import ysq.xyg.recovery.model.po.RecoveryMiddleCat;
import ysq.xyg.sys.model.po.SysUser;
import ysq.xyg.recovery.model.vo.RecoveryMiddleCatVo;

import java.util.List;

/**
 * 回收金模块-中分类service接口
 *
 * @author congcong tao
 * @date 2019-5-8 15:12:12
 */
public interface RecoveryMiddleCatService extends BaseService<RecoveryMiddleCat> {

    /**
     * 分页查询
     *
     * @param recoveryMiddleCatVo 对象
     * @param pageSize 当前页面
     * @param pageNum 页面数量
     * @return ReturnEntity 对象
     * @author congcong tao
     * @date 2019-5-8 15:12:12
     */
    ReturnEntity page(RecoveryMiddleCatVo recoveryMiddleCatVo, int pageSize, int pageNum);

    /**
     * 修改
     *
     * @param recoveryMiddleCatVo 对象
     * @param currentUser 当前用户
     * @return ReturnEntity 对象
     * @author congcong tao
     * @date 2019-5-8 15:12:12
     */
    ReturnEntity addOrUpdate(RecoveryMiddleCatVo recoveryMiddleCatVo, SysUser currentUser);

    /**
     * 删除
     *
     * @param id 主键id删除
     * @param currentUser 当前用户
     * @return ReturnEntity 对象
     * @author congcong tao
     * @date 2019-5-8 15:12:12
     */
    ReturnEntity delete(String id, SysUser currentUser);

    /**
     * 获取集合
     *
     * @param recoveryMiddleCatVo 对象
     * @return List<RecoveryMiddleCat> RecoveryMiddleCat集合
     * @author congcong tao
     * @date 2019-5-8 15:12:12
     */
    List<RecoveryMiddleCat> acceptList(RecoveryMiddleCatVo recoveryMiddleCatVo);

    ReturnEntity acceptSelect(String code);
}
